package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 职工模块对象 t_employee
 * 
 * @author ruoyi
 * @date 2025-05-12
 */
public class TEmployee extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 员工主键 */
    private Long id;

    /** 员工姓名 */
    @Excel(name = "员工姓名")
    private String name;

    /** 员工性别 */
    @Excel(name = "员工性别")
    private String sex;

    /** 员工照片 */
    @Excel(name = "员工照片")
    private String photo;

    /** 员工生日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "员工生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 员工学历 */
    @Excel(name = "员工学历")
    private String school;

    /** 员工介绍 */
    @Excel(name = "员工介绍")
    private String other;

    /** 职位外键 */
    @Excel(name = "职位外键")
    private Long positionid;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }

    public void setPhoto(String photo) 
    {
        this.photo = photo;
    }

    public String getPhoto() 
    {
        return photo;
    }

    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }

    public void setSchool(String school) 
    {
        this.school = school;
    }

    public String getSchool() 
    {
        return school;
    }

    public void setOther(String other) 
    {
        this.other = other;
    }

    public String getOther() 
    {
        return other;
    }

    public void setPositionid(Long positionid) 
    {
        this.positionid = positionid;
    }

    public Long getPositionid() 
    {
        return positionid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("sex", getSex())
            .append("photo", getPhoto())
            .append("birthday", getBirthday())
            .append("school", getSchool())
            .append("other", getOther())
            .append("positionid", getPositionid())
            .toString();
    }
}
